<div class="ui-g-12 p-20 p-b-0">
    <p-panel headerClass="bg-none" marginHeight='80' [showScroll]="true" >
        <p-header>
            <div class="text-right p-6-0">
                <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">{{teamId?'编辑项目工队':'创建项目工队'}}</span>
                <button *ngIf='submitFlag' pButton type="button" (click)="save()" class="btn {{teamId?'btn-secondary':'btn-success'}}" label="提交"></button>
                <button *ngIf='saveFlag' pButton type="button" (click)="save()" class="btn {{teamId?'btn-secondary':'btn-success'}}" label="保存"></button>
                <button pButton type="button" (deClick)="returnBtn()" label="取消" class="btn btn-secondary m-l-8"></button>
                <!-- <button pButton type="button" (click)="saveAndNew()" label="继续新建" class="btn btn-success"></button> -->
            </div>
        </p-header>

        <form #form="ngForm" novalidate class="form-horizontal">
            <!-- 工队信息 -->
            <div class="ui-g-12 ui-g-nopad  border-b-d5d5d5">
                <div class="ui-lg-12 ui-md-12 head-title">
                    工队信息
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        所属公司：
                    </div>
                    <div class="table-cell" style="min-width:350px;">
                        <p-dropdown name="selectedOrganizationArr" required [options]="organizationArr" placeholder="请选择所属公司" [style]="{width: '100%'}"
                            [(ngModel)]="selectedOrganizationArr" (onChange)='organizationChange();organizationCk()' optionLabel="name"
                            dataKey="code" [disabled]="teamId ? true : false"></p-dropdown>
                    </div>
                    <div class="table-cell">
                        <p-message severity="error" *ngIf="organizationError" [text]="organizationError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        工队名称：
                    </div>
                    <div class="table-cell">
                        <input type="text" maxlength="" pInputText class="p-input"  name="name1" required [(ngModel)]="teamInfo.name" placeholder="所属公司" disabled>

                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        劳务公司：
                    </div>
                    <div class="table-cell">
                        <input pInputText class="p-input" [ngClass]="labourCompanyError?'p-input-error':''"   maxlength="50" (blur)="labourCompanyCk();" (focus)="labourCompanyError =''" name="labourCompany" required
                            [(ngModel)]="teamInfo.labourCompany" placeholder="请输入劳务公司">

                    </div>
                    <div class="table-cell">
                        <p-message *ngIf="labourCompanyError" severity="error" [text]="labourCompanyError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        服务区域：
                    </div>
                    <div class="table-cell">
                        <p-multiSelect [options]="region" selectedItemsLabel='{0} 个区域被选中'  name="region" dataKey="area_code" optionLabel='area_name' [defaultLabel]="'请选择区域'" [(ngModel)]="selectedRegion"
                            [style]="{'width':'100%'}" (onChange)="selectedRegionCk()"></p-multiSelect>
                    </div>
                    <div class="table-cell">
                        <p-message *ngIf="regionError" severity="error" [text]="regionError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25">
                        联系电话：
                    </div>
                    <div class="table-cell">
                        <input pInputText type="text" maxlength="100" name="telephone" (focus)="tTelephoneError =''" (blur)="checkMobile(teamInfo.telephone)" [(ngModel)]="teamInfo.telephone"
                            class="p-input" [ngClass]="tTelephoneError?'p-input-error':''"  placeholder="请输入联系电话，多个电话请用‘,’隔开">
                    </div>
                    <div class="table-cell">
                        <p-message *ngIf="tTelephoneError" severity="error" [text]="tTelephoneError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25">
                        工人数量：
                    </div>
                    <div class="table-cell">
                        <input pInputText type="text"  name="workerNum" required [(ngModel)]="teamInfo.workerNum" class="p-input"  disabled>
                    </div>
                    <div class="table-cell">
                        <span class="p-l-16">人</span>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        施工能力：
                    </div>
                    <div class="table-cell">
                        <input pInputText type="text"  maxlength='3' (focus)="abilityError =''" name="ability" (blur)="abilityCk();" required class="p-input" [ngClass]="abilityError?'p-input-error':''" [(ngModel)]="teamInfo.ability"
                            placeholder="请输入施工能力">

                    </div>
                    <!-- <div class="table-cell icon-text" data-text="套">
                        <p-spinner name="ability" (onFocus)="abilityError =''" (onBlur)="abilityCk();" size="30"  styleClass="p-spinner" [(ngModel)]="teamInfo.ability" [step]="1"></p-spinner>
                    </div> -->
                    <div class="table-cell">
                        <span class="p-l-16">套</span>
                        <p-message *ngIf="abilityError" severity="error" [text]="abilityError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25">
                        是否推荐：
                    </div>
                    <div class="table-cell">
                        <p-radioButton name="isRecommend" (click)="clickIsRecommend()" value="1" label="是" [(ngModel)]="selectRecommend" inputId="opt1"></p-radioButton>
                        <p-radioButton name="isRecommend" (click)="clickIsRecommend()" value="0" label="否" [(ngModel)]="selectRecommend" inputId="opt2"></p-radioButton>

                    </div>
                    <div class="table-cell">
                        <p-message *ngIf="selectRecommendError" severity="error" [text]="selectRecommendError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        保证金状态：
                    </div>
                    <div class="table-cell">
                        <p-dropdown required name="cashDepositStatus" [options]="cashDepositStatus" dataKey="id" placeholder="请选择保证金状态" [style]="{width: '100%'}"
                            [(ngModel)]="selectedCashDepositStatus" (onChange)="cashDepositStatusCk()" optionLabel="name" dataKey="code"></p-dropdown>

                    </div>
                    <div class="table-cell">
                        <p-message *ngIf="cashDepositStatusError" severity="error" [text]="cashDepositStatusError"></p-message>
                    </div>
                </div>
                <div class="table-row m-b-20">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        保证金额：
                    </div>
                    <div class="table-cell">
                        <input pInputText type="text" maxlength='12' name="cashAmount" (focus)="cashAmountError =''" (blur)="cashAmountCk();" required [(ngModel)]="teamInfo.cashAmount"
                            pInputText class="p-input" [ngClass]="cashAmountError?'p-input-error':''" [disabled]="selectedCashDepositStatus?.code !=='cashdepositstatus_havepaid'">
                    </div>
                    <div class="table-cell">
                        <span class="p-l-16">元</span>
                        <p-message *ngIf="cashAmountError" severity="error" [text]="cashAmountError"></p-message>
                    </div>
                </div>
            </div>
            <!-- 工队信息end -->

            <!-- 项目经理信息 -->
            <div  class="ui-g-12  border-b-d5d5d5 ui-g-nopad">
                <div class="ui-lg-12 ui-md-12 head-title">
                    项目经理信息
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        账号：
                    </div>
                    <div class="table-cell mi-w-800">
                        <input pInputText type="text" maxlength='50' name="account" (focus)="foremanAccountError =''" (blur)="uniqueAccount(foreman.account)" size="30"
                            required [(ngModel)]="foreman.account" class="p-input width-350" [ngClass]="foremanAccountError?'p-input-error':''"  placeholder="请输入账号" [disabled]="teamId">
                        <p-message *ngIf="foremanAccountError" severity="error" [text]="foremanAccountError"></p-message>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        身份证号：
                    </div>
                    <div class="table-cell">
                        <input type="text" required name="idNumber"  maxlength='18' (focus)="idNumberError =''" (blur)="userIDCard(foreman.idNumber);" [(ngModel)]="foreman.idNumber"
                            class="p-input width-350" [ngClass]="idNumberError?'p-input-error':''"  pInputText placeholder="请输入身份证号">
                        <p-message *ngIf="idNumberError" severity="error" [text]="idNumberError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        手机号：
                    </div>
                    <div class="table-cell">
                        <input type="text" required name="managerTelephone" maxlength='11' (focus)="managerTelephoneError =''" (blur)="uniqueFTelephone(foreman.managerTelephone)"
                            [(ngModel)]="foreman.managerTelephone" pInputText placeholder="请输入手机号" class="p-input width-350" [ngClass]="managerTelephoneError?'p-input-error':''" >
                        <p-message *ngIf="managerTelephoneError" severity="error" [text]="managerTelephoneError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        姓名：
                    </div>
                    <div class="table-cell">
                        <input type="text" pInputText name="name" maxlength='10' (blur)="fNameCK()" (focus)="foremanNameError =''" [(ngModel)]="foreman.name" placeholder="请输入姓名"
                            class="p-input width-350" [ngClass]="foremanNameError?'p-input-error':''" >
                        <p-message *ngIf="foremanNameError" severity="error" [text]="foremanNameError"></p-message>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        性别：
                    </div>
                    <div class="table-cell">
                        <div style="display: inline-block;width: 350px;">
                            <p-dropdown required name="selectSex" styleClass="width-full" placeholder="请选择性别" [options]="sexArr" [(ngModel)]="selectSex"
                                optionLabel="name" dataKey="code" (onChange)="selectSexCk()"></p-dropdown>
                        </div>
                        <p-message *ngIf="sexError" severity="error" [text]="sexError"></p-message>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        从业时间：
                    </div>
                    <div class="table-cel">

                        <div class="i-b-350">
                            <p-calendar [(ngModel)]="foreman.workingStartTime" required name="workingStartTime" placeholder="请选择从业时间" [monthNavigator]="timeConfig.monthNavigator"
                                [locale]="timeConfig.locale" styleClass="p-calendar" [maxDate]="maxWorkingStartTime" inputStyleClass="height-full" [dataType]="timeConfig.dataType"
                                [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths" [dateFormat]="timeConfig.dateFormat"
                                (onSelect)="getWorkingYears();getWorkingYearsCk()">
                            </p-calendar>
                        </div>
                        <p-message *ngIf="workingStartTimeError" severity="error" [text]="workingStartTimeError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        从业年限：
                    </div>
                    <div class="table-cell">
                        <input type="text" disabled='true' required name="workingYears" [(ngModel)]="foreman.workingYears" pInputText placeholder="从业年限"
                            class="p-input width-350">
                        <span class="p-l-16" *ngIf="foreman.workingYears != '不满一年'">年</span>
                        <p-message *ngIf="workingYearsError" severity="error" [text]="workingYearsError"></p-message>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25">
                        籍贯：
                    </div>
                    <div class="table-cell">
                        <input type="text" pInputText  maxlength='10' required (focus)="birthPlaceError =''" name="birthPlace" [(ngModel)]="foreman.birthPlace" placeholder="请输入籍贯"
                            class="p-input width-350">
                        <p-message *ngIf="birthPlaceError" severity="error" [text]="birthPlaceError"></p-message>
                    </div>
                </div>


                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        级别：
                    </div>
                    <div class="table-cell">
                        <div class="i-b-180">
                            <!-- <p-rating [iconOffStyle]="{height: '34px', fontSize: '34px'}" [iconOnStyle]="{height: '34px', fontSize: '34px'}" [(ngModel)]="foreman.level"
                                [cancel]="false" [ngModelOptions]="{standalone: true}" (onRate)="levelCk()"></p-rating> -->
                            <p-dropdown required name="leve" styleClass="width-full" placeholder="请选择级别" [options]="levelArr" [(ngModel)]="selectLevel"
                                optionLabel="name" dataKey="code" (onChange)="levelCk()"></p-dropdown>
                        </div>
                        <p-message *ngIf="levelError" severity="error" [text]="levelError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        现居地：
                    </div>
                    <div class="table-cell">
                        <div class="i-b-400">
                            <div class="i-b-b-32">
                                <p-dropdown placeholder="省" styleClass="width-full" [options]="addressCurrentProvinceArr" [(ngModel)]="selectedCurrentProvince"
                                    [ngModelOptions]="{standalone: true}" dataKey='area_code' optionLabel="area_name" (onChange)='CurrentProvinceError = "";currentChange("province");currentAddressCk();' (onBlur)="checkProCityDis()"></p-dropdown>
                            </div>
                            <div class="i-b-b-32">
                                <p-dropdown placeholder="市" styleClass="width-full" [options]="addressCurrentCityArr" [(ngModel)]="selectedCurrentCity" [ngModelOptions]="{standalone: true}" (onBlur)="checkProCityDis()"
                                    dataKey='area_code' optionLabel="area_name" (onChange)='CurrentProvinceError = "";currentChange("city");currentAddressCk()'></p-dropdown>
                            </div>
                            <div class="i-b-b-32">
                                <p-dropdown placeholder="区/镇/乡" dataKey='area_code' styleClass="width-full" [options]="addressCurrentAreaArr" [(ngModel)]="selectedCurrentArea" (onBlur)="checkProCityDis()"
                                    [ngModelOptions]="{standalone: true}" (onChange)='currentAddressCk()' optionLabel="area_name"></p-dropdown>
                            </div>
                        </div>
                        <div class="i-b">
                            <input pInputText type="text" maxlength='25' (focus)="CurrentProvinceError =''" required name="addressCurrentDetail" (blur)="currentAddressCk()"
                                [(ngModel)]="foreman.addressCurrentDetail" placeholder="请输入详细地址" class="p-input  width-350" [ngClass]="(CurrentProvinceError != '' && CurrentProvinceError != undefined)?'p-input-error':''">
                        </div>
                      <span>
                        <p-message *ngIf="CurrentProvinceError" severity="error" [text]="CurrentProvinceError"></p-message>
                        <p-message *ngIf="proCityDisError" severity="error" [text]="proCityDisError"></p-message>
                      </span>
                    </div>

                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25">
                        户籍所在地：
                    </div>
                    <div class="table-cell ">
                        <div class="i-b-400">
                            <div class="i-b-b-32">
                                <p-dropdown placeholder="省" styleClass="width-full" [options]="addressBirthProvinceArr" [(ngModel)]="selectedBirthProvinceArr"
                                    [ngModelOptions]="{standalone: true}" dataKey="area_code" optionLabel="area_name" (onChange)='birthChange("province")'></p-dropdown>
                            </div>
                            <div class="i-b-b-32">
                                <p-dropdown placeholder="市" styleClass="width-full" [options]="addressBirthCityArr" [(ngModel)]="selectedBirthCityArr" [ngModelOptions]="{standalone: true}"
                                    dataKey="area_code" optionLabel="area_name" (onChange)='birthChange("city")'></p-dropdown>
                            </div>
                            <div class="i-b-b-32">
                                <p-dropdown placeholder="区/镇/乡" styleClass="width-full" [options]="addressBirthAreaArr" [(ngModel)]="selectedBirthAreaArr"
                                    [ngModelOptions]="{standalone: true}" dataKey="area_code" optionLabel="area_name"></p-dropdown>
                            </div>
                        </div>
                        <div class="i-b">
                            <input type="text" name="addressBirthDetail" maxlength='25' [(ngModel)]="foreman.addressBirthDetail" required pInputText placeholder="请输入详细地址"
                                class="p-input  width-350">
                        </div>
                    </div>
                    <div class="table-cell ">
                        <p-message *ngIf="BirthProvinceError" severity="error" [text]="BirthProvinceError"></p-message>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">
                        个人简介：
                    </div>
                    <div class="table-cell">
                        <textarea [rows]="4" #textarea (focus)="descriptionError =''" maxlength='70' required name="description" Class="width-full" (blur)="descriptionCk()"
                            pInputTextarea autoResize="true" [(ngModel)]="foreman.description" [ngClass]="descriptionError?'p-input-error':''"  style="resize: none;width:390px !important;vertical-align: middle;" placeholder="请输入个人简介"></textarea>
                            <p-message *ngIf="descriptionError" severity="error" [text]="descriptionError"></p-message>
                            <div class="text-right opacity06" style="padding-left: 292px;text-align: left;">还可输入{{70 - (foreman.description?.length || 0)}}个字</div>

                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">
                        手持身份证照片：
                    </div>
                    <div class="table-cell">

                        <div class="pull-left load-img" *ngIf="managerPhotoPcImages&&managerPhotoPcImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'managerPhotoPc')" styleClass="inline-block" [images]="managerPhotoPcImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-10 file-item-img" *ngIf="managerPhotoPcImages.length<=0">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,managerPhotoPc)" [controlAuto]="true" #managerPhotoPc cancelLabel='managerPhotoPc' onlyImg="true" auto="true" styleClass="height-full p-input absolute opacity0"
                                accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,managerPhotoPc);managerPhotoPcCk();"
                                chooseLabel="上传文件" [url]="uploadRrl" (onSelect)="onSelect($event,managerPhotoPc)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>

                        </div>
                        <p-message *ngIf="managerPhotoPcError" styleClass='m-t-38 ' severity="error" [text]="managerPhotoPcError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，文件大小不能超过2M</div>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">
                        身份证正面：
                    </div>
                    <div class="table-cell">
                        <div class="pull-left load-img" *ngIf="idcardPhotoFrontImages&&idcardPhotoFrontImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'idcardPhotoFront')" styleClass="inline-block" [images]="idcardPhotoFrontImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img" *ngIf="idcardPhotoFrontImages.length<=0">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,idcardPhotoFront)" [controlAuto]="true" #idcardPhotoFront multiple="false" cancelLabel='idcardPhotoFront' onlyImg="true" auto="true"
                                styleClass="height-full p-input absolute opacity0" accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,idcardPhotoFront);idcardPhotoFrontCk();"
                                chooseLabel="上传文件" [url]="uploadRrl" (onSelect)="onSelect($event,idcardPhotoFront)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="idcardPhotoFrontError"  styleClass='m-t-38 ' severity="error" [text]="idcardPhotoFrontError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，文件大小不能超过2M</div>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">
                        身份证反面：
                    </div>
                    <div class="table-cell">
                        <div class="pull-left load-img" *ngIf="idcardPhotoReverseImages&&idcardPhotoReverseImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'idcardPhotoReverse');" styleClass="inline-block" [images]="idcardPhotoReverseImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img" *ngIf="idcardPhotoReverseImages.length<=0">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,idcardPhotoReverse)" [controlAuto]="true" #idcardPhotoReverse cancelLabel='idcardPhotoReverse' onlyImg="true" auto="true" styleClass="height-full p-input absolute opacity0"
                                accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,idcardPhotoReverse);idcardPhotoReverseCk()"
                                chooseLabel="上传文件" [url]="uploadRrl" (onSelect)="onSelect($event,idcardPhotoReverse)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="idcardPhotoReverseError" styleClass='m-t-38 ' severity="error" [text]="idcardPhotoReverseError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，文件大小不能超过2M</div>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">
                        保险单附件：
                    </div>
                    <div class="table-cell mi-w-800" >
                        <div class="pull-left load-img" *ngIf="insuranceAttachImages&&insuranceAttachImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'insuranceAttach')" styleClass="inline-block" [images]="insuranceAttachImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="insuranceAttachImages.length<=19">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,insuranceAttach)" [controlAuto]="true" #insuranceAttach cancelLabel='insuranceAttach' onlyImg="true" auto="true" styleClass="height-full p-input absolute opacity0"
                                accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,insuranceAttach);insuranceAttachCk();"
                                chooseLabel="上传文件" [url]="uploadRrl" (onSelect)="onSelect9($event,insuranceAttach)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="insuranceAttachError" styleClass='m-t-38 ' severity="error" [text]="insuranceAttachError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，最多上传20张，文件大小不能超过2M</div>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        保险起止日期：
                    </div>
                    <div class="table-cell">
                        <div class="p-w-200">
                            <p-calendar [(ngModel)]="foreman.insuranceStartTime" required name="insuranceStartTime" placeholder="请选择保险开始时间" inputStyleClass="height-full"
                                [dataType]="timeConfig.dataType" [monthNavigator]="timeConfig.monthNavigator" [maxDate]='insuranceEndTimeMaxDate'
                                [locale]="timeConfig.locale" styleClass="p-calendar" [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths"
                                [dateFormat]="timeConfig.dateFormat" (onSelect)="updateCalendarEndTime('insurance');insuranceTimeCk()"></p-calendar>
                        </div>
                        <span class="p-w-span">-</span>
                        <div class="p-w-200">
                            <p-calendar [(ngModel)]="foreman.insuranceEndTime" required name="insuranceEndTime" placeholder="请选择保险结束时间" [dataType]="timeConfig.dataType"
                                [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale" styleClass="p-calendar"
                                [showIcon]="timeConfig.showIcon" inputStyleClass="height-full" [selectOtherMonths]="timeConfig.selectOtherMonths"
                                [dateFormat]="timeConfig.dateFormat" [minDate]='insuranceEndTimeMinDate' (onSelect)="updateCalendarStartTime('insurance');insuranceTimeCk()"></p-calendar>
                        </div>
                        <p-message *ngIf="insuranceStartTimeError" severity="error" [text]="insuranceStartTimeError"></p-message>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">
                        合同附件：
                    </div>
                    <div class="table-cell mi-w-800">
                        <div class="pull-left load-img" *ngIf="serviceContractAttachImages&&serviceContractAttachImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'serviceContractAttach')" styleClass="inline-block" [images]="serviceContractAttachImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="serviceContractAttachImages.length<=19">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,serviceContractAttach)" [controlAuto]="true" #serviceContractAttach cancelLabel='serviceContractAttach' onlyImg="true" auto="true"
                                styleClass="height-full p-input absolute opacity0" accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,serviceContractAttach);serviceContractAttachCk();"
                                chooseLabel="上传文件" [url]="uploadRrl" (onSelect)="onSelect9($event,serviceContractAttach)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="serviceContractAttachError" styleClass='m-t-38 ' severity="error" [text]="serviceContractAttachError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，最多上传20张，文件大小不能超过2M</div>
                    </div>
                </div>

                <div class="table-row m-b-20">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        合同起止日期：
                    </div>
                    <div class="table-cell">
                        <div class="p-w-200">
                            <p-calendar [(ngModel)]="foreman.contractStartTime" required name="contractStartTime" placeholder="请选择合同开始时间" [dataType]="timeConfig.dataType"
                                [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale" [maxDate]='contractStartTimeMaxDate'
                                styleClass="p-calendar" [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths"
                                [dateFormat]="timeConfig.dateFormat" inputStyleClass="height-full" (onSelect)="updateCalendarEndTime('contract');contractTimeCk()"></p-calendar>
                        </div>
                        <span class="p-w-span">-</span>
                        <div class="p-w-200">
                            <p-calendar [(ngModel)]="foreman.contractEndTime" required name="contractEndTime" placeholder="请选择合同结束时间" [dataType]="timeConfig.dataType"
                                [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale" styleClass="p-calendar"
                                [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths" [dateFormat]="timeConfig.dateFormat"
                                inputStyleClass="height-full" [minDate]='contractStartTimeMinDate' (onSelect)="updateCalendarStartTime('contract');contractTimeCk()"></p-calendar>
                        </div>
                        <p-message *ngIf="contractStartTimeError" severity="error" [text]="contractStartTimeError"></p-message>
                    </div>

                </div>
            </div>
            <!-- 项目经理信息end -->

            <!-- 职业资格证件 -->
            <div class="ui-g-12  border-b-d5d5d5 ui-g-nopad ">
                <div class="ui-lg-12 ui-md-12  head-title">
                    职业资格证件
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">
                        电工证附件：
                    </div>
                    <div class="table-cell mi-w-800">
                        <div class="pull-left load-img" *ngIf="electricAttachImages&&electricAttachImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'electricAttach')" styleClass="inline-block" [images]="electricAttachImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="electricAttachImages.length<=19">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,electricAttach)" [controlAuto]="true" #electricAttach cancelLabel='electricAttach' onlyImg="true" auto="true" styleClass="height-full p-input absolute opacity0"
                                accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,electricAttach);electricAttachCk();"
                                chooseLabel="上传文件" [url]="uploadRrl" (onSelect)="onSelect9($event,electricAttach)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="electricAttachError" styleClass='m-t-38 ' severity="error" [text]="electricAttachError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，最多上传20张，文件大小不能超过2M</div>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required">
                        电工证起止日期：
                    </div>
                    <div class="table-cell">
                        <div class="p-w-200">
                            <p-calendar [(ngModel)]="foreman.electricAttachStartTime" required name="electricAttachStartTime" placeholder="请选择起止日期" [dataType]="timeConfig.dataType"
                                [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale" [maxDate]='electricAttachEndTimeMaxDate'
                                styleClass="p-calendar" [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths"
                                [dateFormat]="timeConfig.dateFormat" inputStyleClass="height-full" (onSelect)="updateCalendarEndTime('electric');electricAttachTimeCk();"></p-calendar>
                        </div>
                        <span class="p-w-span">-</span>
                        <div class="p-w-200">
                            <p-calendar [(ngModel)]="foreman.electricAttachEndTime" required name="electricAttachEndTime" placeholder="请选择起止日期" [dataType]="timeConfig.dataType"
                                [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale" styleClass="p-calendar"
                                [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths" [dateFormat]="timeConfig.dateFormat"
                                inputStyleClass="height-full" [minDate]='electricAttachEndTimeMinDate' (onSelect)="updateCalendarStartTime('electric');electricAttachTimeCk();"></p-calendar>
                        </div>
                        <p-message *ngIf="electricAttachStartTimeError" severity="error" [text]="electricAttachStartTimeError"></p-message>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 v-a-t">
                        管道证附件：
                    </div>
                    <div class="table-cell">
                        <div class="pull-left load-img" *ngIf="pipeCardAttachImages&&pipeCardAttachImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'pipeCardAttach')" styleClass="inline-block" [images]="pipeCardAttachImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="pipeCardAttachImages.length<=19">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,pipeCardAttach)" [controlAuto]="true" #pipeCardAttach cancelLabel='pipeCardAttach' onlyImg="true" auto="true" styleClass="height-full p-input absolute opacity0"
                                accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,pipeCardAttach);pipeCardAttachCk();"
                                chooseLabel="上传文件" [url]="uploadRrl" (onSelect)="onSelect9($event,pipeCardAttach)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="pipeCardAttachError" styleClass='m-t-38 ' severity="error" [text]="pipeCardAttachError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，最多上传20张，文件大小不能超过2M</div>
                    </div>
                </div>

                <div class="table-row m-b-20">
                    <div class="table-cell width-150  text-right p-l-25">
                        管道证起止日期：
                    </div>
                    <div class="table-cell">
                        <div class="p-w-200">

                            <p-calendar [(ngModel)]="foreman.pipeCardStartTime" required name="pipeCardStartTime" [dataType]="timeConfig.dataType" [monthNavigator]="timeConfig.monthNavigator"
                                [locale]="timeConfig.locale" placeholder="请选择管道证开始时间" styleClass="p-calendar" [showIcon]="timeConfig.showIcon"
                                [selectOtherMonths]="timeConfig.selectOtherMonths" [maxDate]='pipeCardEndTimeMaxDate' [dateFormat]="timeConfig.dateFormat"
                                inputStyleClass="height-full" (onSelect)="updateCalendarEndTime('pipe');pipeCardTimeCk()"></p-calendar>
                        </div>
                        <span class="p-w-span">-</span>
                        <div class="p-w-200">
                            <p-calendar [(ngModel)]="foreman.pipeCardEndTime" required name="pipeCardEndTime" placeholder="请选择管道证结束时间" [dataType]="timeConfig.dataType"
                                [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale" styleClass="p-calendar"
                                [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths" [dateFormat]="timeConfig.dateFormat"
                                inputStyleClass="height-full" [minDate]='pipeCardEndTimeMinDate' (onSelect)="updateCalendarStartTime('pipe');pipeCardTimeCk()"></p-calendar>
                        </div>
                        <p-message *ngIf="pipeCardStartTimeError" severity="error" [text]="pipeCardStartTimeError"></p-message>
                    </div>
                </div>
            </div>
            <!-- 职业资格证件end -->

            <!-- 企业培训(签字后拍照上传) -->
            <div class="ui-g-12  ui-g-nopad ">
                <div class="ui-lg-12 ui-md-12  head-title">
                    企业培训(签字后拍照上传)
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">
                        施工手册：
                    </div>
                    <div class="table-cell mi-w-800">
                        <div class="pull-left load-img" *ngIf="constructionManualImages&&constructionManualImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'constructionManual')" styleClass="inline-block" [images]="constructionManualImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="constructionManualImages.length<=19">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,constructionManual)" [controlAuto]="true" #constructionManual cancelLabel='constructionManual' onlyImg="true" auto="true" styleClass="height-full p-input absolute opacity0"
                                accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,constructionManual);constructionManualCk();"
                                chooseLabel="上传文件" [url]="uploadRrl" (onSelect)="onSelect9($event,constructionManual)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="constructionManualError" styleClass='m-t-38 ' severity="error" [text]="constructionManualError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，最多上传20张，文件大小不能超过2M</div>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">

                        产品套餐手册：
                    </div>
                    <div class="table-cell">
                        <div class="pull-left load-img" *ngIf="productManualImages&&productManualImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'productManual')" styleClass="inline-block" [images]="productManualImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="productManualImages.length<=19">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,productManual)" [controlAuto]="true" #productManual cancelLabel='productManual' onlyImg="true" auto="true" styleClass="height-full p-input absolute opacity0"
                                accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,productManual);productManualCk()" chooseLabel="上传文件"
                                [url]="uploadRrl" (onSelect)="onSelect9($event,productManual)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="productManualError" styleClass='m-t-38 ' severity="error" [text]="productManualError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，最多上传20张，文件大小不能超过2M</div>
                    </div>
                </div>


                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">

                        工程部处罚规范：
                    </div>
                    <div class="table-cell">
                        <div class="pull-left load-img" *ngIf="engineerStandardImages&&engineerStandardImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'engineerStandard')" styleClass="inline-block" [images]="engineerStandardImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="engineerStandardImages.length<=19">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,engineerStandard)" [controlAuto]="true"  #engineerStandard cancelLabel='engineerStandard' onlyImg="true" auto="true" styleClass="height-full p-input absolute opacity0"
                                accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,engineerStandard);engineerStandardCk();"
                                chooseLabel="上传文件" [url]="uploadRrl" (onSelect)="onSelect9($event,engineerStandard)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="engineerStandardError" styleClass='m-t-38 ' severity="error" [text]="engineerStandardError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，最多上传20张，文件大小不能超过2M</div>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-150  text-right p-l-25 p-required v-a-t">

                        APP使用规范：
                    </div>
                    <div class="table-cell">
                        <div class="pull-left load-img" *ngIf="appStandardImages&&appStandardImages.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'appStandard')" styleClass="inline-block" [images]="appStandardImages"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="appStandardImages.length<=19">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,appStandard)" [controlAuto]="true" #appStandard cancelLabel='appStandard' onlyImg="true" auto="true" styleClass="height-full p-input absolute opacity0"
                                accept="image/png,image/bmp,image/jpeg,image/jpg" (onUpload)="onUpload($event,appStandard);appStandardCk();" chooseLabel="上传文件"
                                [url]="uploadRrl" (onSelect)="onSelect9($event,appStandard)" maxFileSize="2465792">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="appStandardError" styleClass='m-t-38 ' severity="error" [text]="appStandardError"></p-message>
                        <div class="img-prompt opacity06 ui-g-12">只能上传jpg／png格式，最多上传20张，文件大小不能超过2M</div>
                    </div>
                </div>


            </div>
            <!-- 企业培训(签字后拍照上传)end -->
        </form>
    </p-panel>
</div>
